// mod 关键字把模块添加值项目中
mod map;  

// 使用预导入方法，避免多行 use map::xxxxx的写法,使代码变得臃肿
mod prelude {
    pub use bracket_lib::prelude::*;
    pub const SCREEN_WIDTH: i32 = 80;
    pub const SCREEN_HEIGHT: i32 = 50;
    pub use crate::map::*;
}

use prelude::*;

fn main()-> BError {
    let context  = BTermBuilder::simple80x50()
    .with_title("Dungeon Crawler")
    .with_fps_cap(30.0)
    .build()?;

    main_loop(context, State::new())
}
